import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index.js'
import { createPinia } from 'pinia'
import { useWebSocketStore } from './store/WebSocketStore.js'

createApp(App)
.use(router)
.use(createPinia())
.mount('#app')

// 初始化 WebSocket
const wsStore = useWebSocketStore();
wsStore.connect()
